package CS4310.csueb.visual;


import javax.swing.JPanel;

import CS4310.csueb.characters.*;
import CS4310.csueb.items.*;

///////////////////////// class SpriteManager //////////////////////////////
//manages sprites in a particular map, includes collision
public class SpriteManager extends JPanel{
	
	
	private HeroSprite heroSprite;
	private CharacterSprite characterSpriteArray[];
	private ItemSprite itemSpriteArray[];
	
	//default constructor
	public SpriteManager(){
		setLayout(null);
		setBounds(0, 20, 800, 580);
	}
	
	//to test hero only
	public SpriteManager(Hero pHero){
		super();
		//heroSprite = (HeroSprite) pHero.getSprite();
	}
	
	public SpriteManager(Enemy pCharacterArray[], Item pItemArray[], Hero pHero){
		super();
		setDoubleBuffered(true);
		setLayout(null); // custom layout
		
		//create arrays of corresponding sprites
		/*for(int i = 0; i < pCharacterArray.length; i++)
			//characterSpriteArray[i] = (CharacterSprite) pCharacterArray[i].getSprite();
		
		for(int i = 0; i < pItemArray.length; i++)
			//itemSpriteArray[i] = pItemArray[i].getSprite();
		
		//get hero's sprite
		//heroSprite = (HeroSprite) pHero.getSprite();
		add(heroSprite);*/
	}
	
	
	
	public void addSprite(Sprite spriteToAdd){
		add(spriteToAdd);
	}
	
	public void removeSprite(){}
	
	public void removeAllSprites(){}
	
	
	
	//public void pantComponent(Graphics g){} 

	/////////// collision detection? //////////////
}
